package com.zhaojindong.ioc.component.register.fourth;

import com.zhaojindong.ioc.component.common.model.Color;
import org.springframework.beans.factory.FactoryBean;


public class ColorFactoryBean implements FactoryBean<Color> {

    // 返回一个Color对象,这个对象会添加到容器中
    @Override
    public Color getObject() {
        return new Color();
    }

    @Override
    public Class<?> getObjectType() {
        return Color.class;
    }

    // true? 单例：多例
    @Override
    public boolean isSingleton() {
        return false;
    }
}